/**
 * Created by wubo on 2018/3/11.
 */
define(function(require, exports, module) {
    var router = new VueRouter();

    //
    router.beforeEach(function(to, from, next) {
        next();
    })

    router.afterEach(function(to, from) {
        console.log(from);

        if(to.path == "/module/install"){
            $("iframe").attr("src","../../module/index.html")
        }
        else
        {
            $("iframe").attr("src", "../../element/index.html")
        }

    })

    module.exports = router;
})


